<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    This is test project for IE8.
    <script src="require.js"></script>
    <script>

        "use strict";

        require.config({
//            urlArgs: "bust=" +  (new Date()).getTime(), // 部署时需要去掉此配置
            urlArgs: "t=" + +new Date,
            baseUrl: 'lib',
            paths: {
                compute: 'compute',
                text: "../require.text",
                view: 'tpl'
            }
        });

        require(['compute/main'], function (compute) {
            console.log(compute);
        });

        require(['compute/test-text'], function (readme) {
            console.log("readme.txt ==> " + readme.getText());
        });

        // view===>tpl
        require(['text!view/main/aaa.txt'], function (aaa) {
            console.log(aaa);
        });

        // tpl未定义相对路径，则使用lib/tpl/....
        require(['text!tpl/main/aaa.txt'], function (aaa) {
            console.log(aaa);
        });

    </script>
</body>
</html>